package org.nicocube.airain.domain.client.character;

import java.io.Serializable;
import java.util.List;

import org.nicocube.airain.domain.client.data.OrderedStorable;
import org.nicocube.airain.domain.client.gamedate.GameDate;

/**
 * 
 * @author nico
 * @version 0.1
 */
public class Possession extends OrderedStorable implements Serializable  {
	// as for version 0.1
	private static final long serialVersionUID = 1L;

	public enum Type {
		javelin,
		food
	}

	private Type type;
	private GameDate acquired;

	protected Possession() {}

	public Possession(Type type, GameDate acquired) {
		this.type = type;
		this.acquired = acquired;
	}

	public Type getType() {
		return type;
	}

	public GameDate getAcquired(){
		return acquired;
	}

	@Override
	public String toString() {
		return "{"+
		super.toString()+"\n"+
		"type="+getType().toString()+"\n"+
		"acquired="+getAcquired()+"}";
	}

	//@Override
	public List<Object> dependencies() {
		return null;
	}

}
